<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<nav class="navbar navbar-default" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/">APPX.TOP</a>
    </div>
    <ul class="nav navbar-nav navbar-left">

      <li class="<c:if test="${nav_home}">active</c:if>"><a href="/">首页</a></li>
      <li class="<c:if test="${nav_article}">active</c:if>"><a href="/article/list.do" class="header-nav-link">文章</a></li>
      <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">应用 <span class="caret"></span></a>
        <ul class="dropdown-menu" role="menu">
          <li>
            <a href="/prj/nav.do">网址导航</a>
            <a href="/prj/food.do" class="enable">吃饭</a>
            <a href="#">聊天器</a>
          </li>
        </ul>
      </li>

    </ul>
    <div class="collapse navbar-collapse">
      <ul class="nav navbar-nav navbar-right">
        <li class="<c:if test="${nav_login}">active</c:if>">
          <a href="/user/login.do">登录</a>
        </li>
        <li class="<c:if test="${nav_register}">active</c:if>">
          <a href="/user/register.do">注册</a></li>
      </ul>
    </div>
  </div>
</nav>
